<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.util.ArrayList, edu.student.models.*" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>View Records</title>
</head>
<br>
<br>
<body>

<table border="1" align="center">
<tr> 
    <th><h2>RollNo</h2></th>
	<th><h2>Semester Name</h2></th>
	<th><h2>Subject Name</h2></th>
	<th><h2>Grade</h2></th>
	<th><h2>Grade Point</h2></th>
	<th><h2>Result</h2></th>
    <th><h2>Modify?</h2></th>
    
</tr>
<s:iterator value="selection">
<tr>
<td><h3><s:property value="rollNo"/> </h3></td>
<td><h3><s:property value="semesterName"/> </h3></td>
<td><h3><s:property value="subjectName"/> </h3></td>
<td><h3><s:property value="grade"/> </h3></td>
<td><h3><s:property value="gradePt"/> </h3></td>
<td><h3><s:property value="result"/> </h3></td>
<td>
<s:url id="modifyGrades" action="ModifyGrades">
<s:param name="rollNo" value="rollNo"/>
<s:param name="semesterName" value="semesterName"/>
<s:param name="subjectName" value="subjectName"/>
<s:param name="grade" value="grade"/>
<s:param name="gradePt" value="gradePt"/>
<s:param name="result" value="result"/>
</s:url> 
<h3><s:a href="%{modifyGrades}" >Modify</s:a></h3>
</td>
</tr>
</s:iterator>
</table>
<br>

<s:form action="back" align="right" name = "Back">
<s:submit name = "commandButton" value="Back to Admin Home" id = "mysubmit" style="height: 30px; width: 200px"/>

</s:form>

</body>
</html>